<?php
/**
 * 
 *
 * @copyright	Copyright 2009-2010   深圳市饭后科技有限公司
 * @license	LGPL (http://www.gnu.org/licenses/lgpl.html)
 * @author	XinHui Wang <wangxinhui@fanhougame.com
 * @package	自动安装第二步
 * @version	
 * @link		http://fanhougame.com/
 */
?>
<?php require_once 'header.php';?>
<table align="center" class="table-6 a-center">
  <caption>系统检查</caption>
  <tbody><tr>
    <th class="w-p20">检查项</th>
    <th class="w-p25">当前配置</th>
    <th class="w-p15">检查结果</th>
    <th>如何修改</th>
  </tr>
  <tr>
    <th>PHP版本</th>
    <td><?php echo PHP_VERSION;?></td>
    <?php if($php_version){?>
    <td class="ok">检查通过(√)</td>
    <?php }else{?>
    <td class="fail">PHP版本必须大于5.2.0</td>
    <?php }?>
    <td class="a-left f-12px">&nbsp;</td>
  </tr>
  <tr>
    <th>PDO扩展</th>
    <td><?php echo $pdo_enabled?'已加载':'未加载';?></td>
    <?php if($pdo_enabled){ ?>
    <td class="ok">检查通过(√)</td>
    <?php }else{?>
    <td class="fail">请开启PDO扩展</td>
    <?php }?>
    <td class="a-left f-12px">&nbsp;</td>
  </tr>
  <tr>
    <th>PDO_MySQL扩展</th>
    <td><?php echo $pdomysql_enabled?'已加载':'未加载';?></td>
    <?php if($pdomysql_enabled){?>
    <td class="ok">检查通过(√)</td>
    <?php }else{?>
    <td class="fail">请开启PDO MYSQL扩展</td>
    <?php }?>
    <td class="a-left f-12px">&nbsp;</td>
  </tr>
  <tr>
    <th>MySQLI扩展</th>
    <td><?php echo $mysqli_enabled?'已加载':'未加载';?></td>
    <?php if($mysqli_enabled){?>
    <td class="ok">检查通过(√)</td>
    <?php }else{?>
    <td class="fail">请开启MYSQLI扩展</td>
    <?php }?>
    <td class="a-left f-12px">&nbsp;</td>
  </tr> 
  <tr>
    <th>SESSION目录</th>
    <td><?php echo $session_enabled?'系统目录 可写':'目录不可写';?></td>
    <?php if($session_enabled){?>
    <td class="ok">检查通过(√)</td>
    <?php }else{?>
    <td class="fail">请检查目录<?php echo HZHIHU_ROOT.$config->sessionsavepath?>是否可写</td>
    <?php }?>
    <td class="a-left f-12px">&nbsp;</td>
  </tr>    
  <tr>
    <th>配置文件目录</th>
    <td><?php echo $config_tmp_enabled?'目录可写':'目录不可写'?></td>
    <?php if($config_tmp_enabled){?>
    <td class="ok">检查通过(√)</td>
    <?php }else{?>
    <td class="fail">请检查目录<?php echo HZHIHU_ROOT.'config/'?>是否可写</td>
    <?php }?>    
    <td class="a-left f-12px">&nbsp;
          </td>
  </tr>
  <tr>
    <th>上传文件目录</th>
    <td><?php echo $upload_enabled?'目录可写':'目录不可写';?></td>
    <?php if($upload_enabled){?>
    <td class="ok">检查通过(√)</td>
    <?php }else{?>
    <td class="fail">请检查目录<?php echo HZHIHU_ROOT.$config->upload_dir?>是否可写</td>
    <?php }?>        
    <td class="a-left f-12px">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="4">
    <a href="<?php  echo $submit?get_url('home/step2'):'javascript:void(0)'?>">下一步</a>
    </td>
  </tr>
</tbody></table>
</body>
</html>